package cn.fjsay.java.demo2;

public class StudentTest {
    public static void main(String[] args) {
        Student student =new Student();
        double v=student.computerArea(new Circle(1.0));
        System.out.printf("圆的面积为：%.2f",v);
        double v1 = student.computerArea(new Ladder(1.0, 2.0, 3.0));
        System.out.printf("\n梯形的面积为：%.2f",v1);
    }
}
